import { Injectable } from '@angular/core';
import { Global } from 'src/global';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class SearchService {

  constructor(private http: HttpClient) { }
  url =Global.commonURL+"/search"
  getSearch(stype:string,wd:string,page:number=1):Observable<any>{
    return this.http.get(this.url+"?page="+page+"&stype="+stype+"&wd="+wd)
  }
}
